package day002.homework;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字：");
        int num1 = sc.nextInt();
        System.out.println("请输入第二个数字：");
        int num2 = sc.nextInt();
        System.out.println("您输入的两个数字为：" + num1 + "和" + num2);
        //交换两个数字
        int temp = num1;
        num1 = num2;
        num2 = temp;
        System.out.println("交换位置后的两个数字为：" + num1 + "和" + num2);
    }
}
